import service from '@/utils/request'
// @Tags LsOrder
// @Summary 创建lsOrder表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsOrder true "创建lsOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lsOrder/createLsOrder [post]
export const createLsOrder = (data) => {
  return service({
    url: '/lsOrder/createLsOrder',
    method: 'post',
    data
  })
}

// @Tags LsOrder
// @Summary 删除lsOrder表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsOrder true "删除lsOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsOrder/deleteLsOrder [delete]
export const deleteLsOrder = (params) => {
  return service({
    url: '/lsOrder/deleteLsOrder',
    method: 'delete',
    params
  })
}

// @Tags LsOrder
// @Summary 批量删除lsOrder表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除lsOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsOrder/deleteLsOrder [delete]
export const deleteLsOrderByIds = (params) => {
  return service({
    url: '/lsOrder/deleteLsOrderByIds',
    method: 'delete',
    params
  })
}

// @Tags LsOrder
// @Summary 更新lsOrder表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsOrder true "更新lsOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lsOrder/updateLsOrder [put]
export const updateLsOrder = (data) => {
  return service({
    url: '/lsOrder/updateLsOrder',
    method: 'put',
    data
  })
}

// @Tags LsOrder
// @Summary 用id查询lsOrder表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LsOrder true "用id查询lsOrder表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lsOrder/findLsOrder [get]
export const findLsOrder = (params) => {
  return service({
    url: '/lsOrder/findLsOrder',
    method: 'get',
    params
  })
}

// @Tags LsOrder
// @Summary 分页获取lsOrder表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取lsOrder表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lsOrder/getLsOrderList [get]
export const getLsOrderList = (params) => {
  return service({
    url: '/lsOrder/getLsOrderList',
    method: 'get',
    params
  })
}

// @Tags LsOrder
// @Summary 不需要鉴权的lsOrder表接口
// @Accept application/json
// @Produce application/json
// @Param data query ordersReq.LsOrderSearch true "分页获取lsOrder表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lsOrder/getLsOrderPublic [get]
export const getLsOrderPublic = () => {
  return service({
    url: '/lsOrder/getLsOrderPublic',
    method: 'get',
  })
}
